package io.binghe.im.platform.common.risk.rule.service;

import io.binghe.im.platform.common.model.enums.HttpCode;

import javax.servlet.http.HttpServletRequest;

/**
 * @author binghe(微信 : hacker_binghe)
 * @version 1.0.0
 * @description IM大后端平台的规则调用链接口
 * @github https://github.com/binghe001
 * @copyright 公众号: 冰河技术
 */
public interface RuleChainService {

    /**
     * 执行处理逻辑
     */
    HttpCode execute(HttpServletRequest request, Object handler);

    /**
     * 规则链中的每个规则排序
     */
    int getOrder();
}
